package com.example.qa_back.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import java.io.Serializable;

/**
 * @author 董帅
 * @date 2021/3/6 - 11:58
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@JsonInclude(value = JsonInclude.Include.NON_NULL) // 使当前实体类在返回前端的时候忽略字段属性为null的字段，使其为null字段不显示。
public class Response implements Serializable { // 继承空接口，实现序列化，在网络中传输
    private Integer code;
    private String msg;
    private Object data;
}
